<?php include 'application/views/header.php' ?>
<h4 class="page-title">Hình ảnh</h4>
<!--<div class="toolbar-set">-->
<!--    <input type="button" class="btnAdd" value="Thêm hình ảnh" />-->
<!--</div>-->
<table width="100%" class="list list-picture">
    <tr>
        <th>STT</th>
        <th>Tiêu đề</th>
        <th>Hình ảnh</th>
        <th>Nội dung</th>
        <th>Thao tác</th>
    </tr>
    <?php $index = 1 ?>
    <?php foreach($Pictures as $picture): ?>
    <tr>    
       <td><?php echo $index++ ?></td>
       <td><?php echo $picture['Title'] ?></td>
       <td><img height="50px" src="<?php echo $this->config->item('base_download') ?>/pictures/<?php echo $picture['PictureLink'] ?>"/></td>
       <td><?php echo $picture['Summary'] ?></td>
       <td>
             <a href="<?php echo base_url()?>picturehome/edit/<?php echo $picture['PictureHomeId'] ?>.html">
                <div class="actEdit" pictureId="<?php echo $picture['PictureHomeId'] ?>">Edit</div>                
            </a>
       </td>
    </tr>
    <?php endforeach; ?>
</table>
<!--<div class="toolbar-set">-->
<!--    <input type="button" class="btnAdd" value="Thêm hình ảnh" />-->
<!--</div>-->
<?php include 'application/views/footer.php' ?>